package com.youth;

import com.codingapi.txlcn.tc.config.EnableDistributedTransaction;
import org.springframework.boot.SpringApplication;
import org.springframework.boot.autoconfigure.SpringBootApplication;
import org.springframework.cache.annotation.EnableCaching;
import org.springframework.cloud.netflix.eureka.EnableEurekaClient;
import org.springframework.cloud.netflix.hystrix.EnableHystrix;
import org.springframework.cloud.netflix.hystrix.dashboard.EnableHystrixDashboard;
import org.springframework.cloud.openfeign.EnableFeignClients;
import org.springframework.context.ApplicationContext;
import org.springframework.context.ConfigurableApplicationContext;
import org.springframework.context.annotation.ComponentScan;

/**
 * @ClassName CommodityService8101Application
 * @Description: TODO 启动类
 * @Author yjwu
 * @Date 2019/10/21 22:19
 **/
@SpringBootApplication(scanBasePackages = {"com.youth"})
@EnableEurekaClient
@EnableFeignClients(basePackages = "com.youth")
@EnableHystrix
@EnableHystrixDashboard
@EnableCaching
@EnableDistributedTransaction
public class CommodityService8101Application {
    public static void main(String[] args) {
        ApplicationContext applicationContext = SpringApplication.run(CommodityService8101Application.class, args);
        applicationContext.getBean("a");
    }
}
